﻿namespace SvGame.Logic;

public static partial class GameLogic
{
    // 满血
    public static void Full(this IRole me)
    {
        me.StatusEff.Kee = me.StatusMax.Kee;
        me.StatusEff.Sen = me.StatusMax.Sen;
        me.StatusCur.Kee = me.StatusMax.Kee;
        me.StatusCur.Sen = me.StatusMax.Sen;
        me.StatusCur.Force = me.StatusMax.Force;
        me.StatusCur.Mana = me.StatusMax.Mana;
        me.StatusCur.Food = me.StatusMax.Food;
        me.StatusCur.Water = me.StatusMax.Water;

        me.Hp();
    }
    // 半血
    public static void Half(this IRole me)
    {
        me.StatusEff.Kee = me.StatusMax.Kee / 2;
        me.StatusEff.Sen = me.StatusMax.Sen / 2;
        me.StatusCur.Kee = me.StatusMax.Kee / 3;
        me.StatusCur.Sen = me.StatusMax.Sen / 3;
        me.StatusCur.Force = me.StatusMax.Force / 2;
        me.StatusCur.Mana = me.StatusMax.Mana / 2;
        me.StatusCur.Food = me.StatusMax.Food / 2;
        me.StatusCur.Water = me.StatusMax.Water / 2;

        me.Hp();
    }
    // 空状态
    public static void Empty(this IRole me)
    {
        me.StatusEff.Kee = 1;
        me.StatusEff.Sen = 1;
        me.StatusCur.Kee = 1;
        me.StatusCur.Sen = 1;
        me.StatusCur.Force = 1;
        me.StatusCur.Mana = 1;
        me.StatusCur.Food = 1;
        me.StatusCur.Water = 1;

        me.Hp();
    }
}
